/*
 * Copyright (c) 2019.
 * Private license for beyondts.
 * Contact beyondts for using, beyondts999@163.com
 */

package net.beyondts.mplug.utils;

import java.io.Closeable;

/**
 * Project: beyondts-projects<br/>
 * Description: <br/>
 * Created at: 2018-12-8<br/>
 * Owned by beyondts.
 *
 * @author blazecrystal
 * @version 1.0.0
 */
public final class IOUtils {
    public static void closeQuietly(AutoCloseable closeable) {
        try {
            if (closeable != null) {
                closeable.close();
            }
        } catch (Exception ioe) {
            // ignore
        }
    }

    public static void closeQuietly(Closeable closeable) {
        try {
            if (closeable != null) {
                closeable.close();
            }
        } catch (Exception ioe) {
            // ignore
        }
    }
}
